set(root_dir ${CMAKE_CURRENT_SOURCE_DIR})

file(GLOB test_files
    "${root_dir}/*.h"
    "${root_dir}/*.cpp"
)

source_group(TREE "${root_dir}/../.." FILES ${test_files})

add_executable(abc-book-test
	${test_files}
)

target_link_libraries(abc-book-test
	abc-book
	GTest::GTest
	GTest::Main
)

add_test(AbcBookTest abc-book-test)
